{T  'member','head'}
<!--正文部分-->
<div class="container adframe">
    <div class="row">
        <div class="col-lg-12 col-xs-12">
            {block=23}
        </div>
    </div>
</div>

<div class="container memberframe">
    <div class="row">
        <div class="col-lg-12 col-xs-12">
            <!--左侧开始-->
            <div class="memberleft">
                <div class="membertitle"><h3>会员中心</h3></div>
                <div class="memberborder">
                    {T 'member','left'}
                </div>
            </div>
            <!--左侧结束-->

            <!--右侧开始-->
            <div class="memberright">

                <div class="memberbordertop">
                    <section class="panel">
                        <header class="panel-heading"><span class="title">账户余额</span></header>

                        <div class="mymoney">可用余额：<span class="myprice">￥{$memberinfo['money']}</span> 账户状态：<span class="state">有效</span></div>

                        <ul id="myTab" class="nav nav-tabs" role="tablist">
                            <li role="presentation" ><a href="?m=pay&f=payment&v=listing"class="active">账户收支明细</a></li>
                            <li role="presentation" class="active"><a href="?m=pay&f=payment&v=pay&acbar=1" id="2tab" >在线充值</a></li>
                        </ul>


                        <div id="myTabContent" class="tab-content tabsbordertop">

                            <div role="tabpanel" class="tab-pane fade active in" id="formdiv" aria-labelledby="1tab">
                                <div class="panel-body" id="panel-bodys">
                                    <form name="myform" action="" method="post" id="myform" target="_blank" onsubmit="return formsubmit();">
                                        <table width="100%" cellspacing="0" class="table table-striped table-advance table-hover text-center">
                                            <tr>
                                                <th width="150" align="right">余额：</th>
                                                <td style="padding:0 0 0 10px"><div class="col-sm-3 text-left inline"><font style="color:#F00; font-size:22px;font-family:Georgia,Arial; font-weight:700">{$memberinfo['money']}</font> 元</div></td>
                                            </tr>
                                            <tr>
                                                <th align="right">充值金额：</th>
                                                <td><div class="col-sm-3 text-left inline"><input name="form[price]" type="text" id="price" size="8" value="{$price}" class="form-control">&nbsp;元<span id="msgid"></span></div></td>
                                            </tr>
                                            <tr>
                                                <th align="right">充值方式：</th>
                                                <td><div class="col-sm-8 text-left inline">
                                                    {loop $payments_res $rs}
                                                    <label class="payment-show"><input name="payment" type="radio" value="{$rs['id']}" {if $n==1}checked{/if}> <em>{$rs['name']}</em><span class="payment">{$rs['note']}</span></label>
                                                    {/loop}</div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th align="right">E-mail：</th>
                                                <td><div class="col-sm-3 text-left inline"><input name="form[email]" type="text" id="email" size="30" value="{$memberinfo['email']}"  class="form-control"/></div></td>
                                            </tr>
                                            <tr>
                                                <th align="right">姓 名：</th>
                                                <td><div class="col-sm-3 text-left inline"><input name="form[username]" type="text" id="contactname" size="30" value="{$memberinfo['username']}"  class="form-control"/></div></td>
                                            </tr>
                                            <tr>
                                                <th align="right">电 话：</th>
                                                <td><div class="col-sm-3 text-left inline"><input name="form[telephone]" type="text" id="telephone" size="30" class="form-control"/></div></td>
                                            </tr>

                                            <tr>
                                                <th align="right">备  注：</th>
                                                <td><div class="col-sm-3 text-left inline"><textarea name="form[remark]"  id="remark" rows="2" cols="50" class="form-control"></textarea></div></td>
                                            </tr>

                                            <tr>
                                                <td></td>
                                                <td colspan="2"><div class="col-sm-6 text-left inline"><label>
                                                    <input type="hidden" name="v" value="pay_recharge">
                                                    <input type="submit" name="dosubmit" id="dosubmit" value="确 定" class="btn btn-order"/>
                                                </label></div></td>
                                            </tr>
                                        </table>
                                    </form>
                                </div>

                            </div>
                            <div id="success_div" style="display: none">
                                已经提交，完成充值后，点击<a href="?m=pay&f=payment&v=listing"> 账户收支明细</a>
                            </div>
                        </div>


                    </section>
                </div>

            </div>
            <!--右侧结束-->


        </div>
    </div>
</div>
<!--正文部分-->

<script type="text/javascript">
    function formsubmit() {
        if($("#price").val()=='' || $("#price").val()==0) {
            alert('请输入充值金额');
            $("#price").focus();
            return false;
        }
        $("#formdiv").css('display','none');
        $("#success_div").css('display','');
        myform.submit();
    }
</script>
{T "member","foot"}